<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div></div>
    <script>
        //innerText 和 innerHTML的区别
        //1.innerText 不识别html标签
        var div = document.querySelector('div');
        //innerHTML 识别html标签
        //这两个属性是可读写的 可以获取元素里面的内容
    </script>
</body>

</html>